#include<iostream>
#include<string>
void swap(char& a, char& b)
{
	char temp = b;
	b = a;
	a = temp;
}
class sr
{
	std::string x;
public:
	sr(std ::string name)
	:x(name)
	{
		for (int i = 0; i < x.size() / 2; i++)
		{
			swap(x[i], x[x.size() - 1 - i]);
		}
		std::cout << x;
	}
	
		
};
int main()
{
	sr o("123456");
}